// swift-tools-version: 5.9
import PackageDescription

let package = Package(
    name: "YD_DataModel",
    platforms: [
        .iOS(.v13) // 最低支持的iOS版本
    ],
    products: [
        .library(
            name: "YD_DataModel",
            targets: ["YD_DataModel"]),
    ],
    
    dependencies: [
        // 你的库依赖的其他库
        .package(url: "https://github.com/SnapKit/SnapKit", .upToNextMajor(from: "5.7.0")),
        .package(url: "https://github.com/tristanhimmelman/ObjectMapper", .upToNextMajor(from: "4.4.3")),
        .package(url: "https://github.com/ReactiveX/RxSwift", .upToNextMajor(from: "6.8.0")),
        .package(url: "https://github.com/SwiftyJSON/SwiftyJSON", .upToNextMajor(from: "5.0.2")),
        .package(url: "https://github.com/Moya/Moya", .upToNextMajor(from: "15.0.3"))
    ],
    targets: [
        .target(
            name: "YD_DataModel",
            dependencies: ["SnapKit", "ObjectMapper", "RxSwift", "SwiftyJSON", "Moya"]),
    ]
)
